package com.freshdirect.src.dao;

import com.freshdirect.src.model.User;
import java.util.List;
        
public interface UserDAO {

    public void save(User user);

    public User userdetails(String log);
    
    public void login(User user);
    
    public void update(User user);

    public int checkCreditsLimit(int userId, int credits);

    public void updateCreditsBalance(int userId, int credits);

    public List<User> getAll();

    public void setDataSource(String user);

    public void updateCreditCard(int id,String cardnumber, String holdername, int cardtype);
    
}